<!DOCTYPE html>
<html>

	<head>
		<meta charset="utf-8">
		<script src="../../js/2h5_fb.js"></script>
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<meta http-equiv="pragma" content="no-cache">
		<meta http-equiv="expires" content="0">
		<meta http-equiv="Cache-Control" content="no-cache, no-store, must-revalidate" />
		<link rel="shortcut icon" href="../../img/icon/bitbug_favicon.ico">
		<link rel="stylesheet" href="../../css/mui/mui.min.css" />
		<link rel="stylesheet" href="../../css/withdraw/withdrawbill_detail.css" />
		<title>账户提现</title>
	</head>

	<body>
		<div class="mui_aetd" id="mui_aetd">
			<div class="aeta_b">
				<a class="mui-action-back mui-icon mui-icon-left-nav mui-pull-left"></a>
				<div class="qy_detas">账户提现</div>
			</div>
		</div>
		<div class="verify_box">
			<div class="verofy_txsq">
				<div class="txsq_status"><img id="solved_img" src="../../img/withdraw/rec_close.png"></div>
				<div class="txsq_font">提现处理中</div>
				<div class="txsq_time" id="solved_time"></div>
			</div>
			<div class="tx_liuc">
				<div class="liuc_solid" id="liuc_solid"></div>
			</div>
			<div class="verofy_txsq">
				<div class="txsq_status"><img id="succ_img" src="../../img/withdraw/zqtx2x.png"></div>
				<div class="txsq_font txsq_fontsucc" id="succ_font">已完成</div>
				<div class="txsq_time" id="succ_time"></div>
			</div>
		</div>
		<div class="verify_com">
			<div class="com_top">
				<div class="comtop_left">提现金额</div>
				<div class="comtop_right">￥<span id="money">---</span></div>
			</div>
			<div class="border_btm"></div>
			<div class="com_btm">
				<!--<div class="combtm_left">工资卡</div>-->
				<div class="combtm_left"><span id="cardName">---</span></div>
				<div class="combtm_right">尾号<span id="tailNum">---</span></div>
			</div>
		</div>
		<div class="verify_font">预计到账时间半个工作日，节假日顺延</div>
		<div style="position: fixed;display:table;margin: 0 auto;width: 0px;height: 0px;;top: 45%;left: 50%;right: 50%;z-index: 1000;">
			<div id="myspin" style="position: fixed;z-index: 10000;"></div>
		</div>
	</body>
	<script type="text/javascript" src="../../js/mui/mui.min.js"></script>
	<script type="text/javascript" src="../../js/jquery/jquery-2.1.4.min.js"></script>
	<script type="text/javascript" src="../../js/myAlert.js"></script>
	<script type="text/javascript" src="../../js/spin/spin.min.js"></script>
	<script type="text/javascript" src="../../js/common.js"></script>
	<script type="text/javascript" src="../../js/util/util.js"></script>
	<script type="text/javascript">
		//ios设备都去除头部返回
		if(isiOS) {
			$(".mui_aetd").css("display", "none");
			$(".verify_box").css("margin-top", "2rem");
		}
		var spinner = new Spinner(opts);
		//提现详情
		var userid_sign = sessionStorage.getItem("userid_sign");
		if(!userid_sign) {
			userid_sign = sessionStorage.getItem("openid");
		}

		$.ajax({
			type: "get",
			url: serverUrl + "/billrecord/query_withdrawrecord?id=" + getParam('id') + "&sgin=" + userid_sign + "&type=" + 2,
			async: false,
			cache: false,
			contentType: "application/json; charset=utf-8",
			dataType: "json",
			crossDomain: true,
			timeout: 15000,
			beforeSend: function() {
				$("#myspin").text("");
				var target = $("#myspin").get(0);
				spinner.spin(target);
			},
			success: function(data) {
				spinner.spin();
				var resultObj = eval(data);
				if(resultObj.code == 0 && resultObj.data != null) {
					$("#money").html(resultObj.data.money);
					$("#cardName").html(resultObj.data.bankName);
					$("#tailNum").html(resultObj.data.bankNum);
					var type = resultObj.data.type;
					if(type == 1) { //提现申请
						$("#solved_time").html(timeFormat(resultObj.data.time));
						$("#solved_img").attr("src", "../../img/login/login_07.jpg")
						$("#liuc_solid").css("background", "#3CAFFF");
					} else if(type == 2) { //提现到账
						$("#solved_time").html(timeFormat(resultObj.data.time));
						$("#solved_img").attr("src", "../../img/login/login_07.jpg")
						$("#liuc_solid").css("background", "#3CAFFF");
						$("#succ_font").css("color", "#1B1B1B")
						$("#succ_img").attr("src", "../../img/login/login_07.jpg")
						$("#succ_time").html(timeFormat(resultObj.data.set_time));
					}
				} else {
					$.myToast(resultObj.msg);
					return;
				}
			},
			error: function(XMLHttpRequest, status, errorThrown) {
				spinner.spin();
				if(status == 'timeout') {
					$.myToast("请求超时");
				} else {
					$.myToast("请求网络服务数据失败");
				}
				return;
			}
		});
	</script>

</html>